package com.situ.blog.test;

import java.util.UUID;

public class UUIDDemo {

    public static void main(String[] args) {
        String uuid = UUID.randomUUID().toString();
        //cd41f05f-56fe-40de-b5d7-974ecaa9cd44
        System.out.println(uuid);
        //97e834fd977f423bb9aa0e3c286102f6
        System.out.println(uuid.replace("-", ""));
    }
}
